import java.util.*;

/**
 * @Author: Aerospace
 * @Date: 2021/4/20 20:12
 * @Description: Dream begins
 */
public class rq {
    public static void main(String[] args) {
        ArrayContinuousValue arrayContinuousValue = new ArrayContinuousValue();
        List<Integer> a1 = (List<Integer>) Arrays.asList(1, 0, 0, 1, 0);
        List<Integer> a2 = (List<Integer>) Arrays.asList(1, 0, 1);
        List<Integer> a3 = (List<Integer>) Arrays.asList(0, 0, 1, 0, 1);
        List<Integer> a4 = (List<Integer>) Arrays.asList(1, 0, 1, 0, 1);
        List<Integer> a5 = (List<Integer>) Arrays.asList(1, 0, 1, 1);
        List<List<Integer>> a = new ArrayList<>();
        a.add(a1);
        a.add(a2);
        a.add(a3);
        a.add(a4);
        a.add(a5);
        Set<String> tempSet = new HashSet<>();
//        int aa = arrayContinuousValue.recursionOnePoint(a,1,2,0, tempSet);
//        System.out.println(aa);
        int maxArea = arrayContinuousValue.maxArea(a);
        System.out.println(maxArea);
    }
}
